package com.lxb.blog.service;

import com.lxb.blog.entity.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TypeService {

    Type saveType(Type type);

    Type getType(Integer id);

    Page<Type> listType(Pageable pageable);

    Type updateType( Integer id,Type type);

    void deleteType(Integer id);

    Type getTypeByname(String name);

    List<Type> listType();
    List<Type> listTypeTop(Integer size);
}
